package com.source.thread.threadd;

import org.springframework.beans.BeanUtils;

import java.util.Date;

public class DD {
    public static void main(String[] args) {
        Apple ap=new Apple();
        ap.setId(888);
        ap.setName("apple");
        ap.setDate(new Date());
        ap.setName2("hahhah");

        Pear pear = new Pear();
        BeanUtils.copyProperties(ap,pear);
        System.out.println(pear);
    }
}
